function init(){
    changeOrderState();
}

function changeOrderState(){
    $('.input-order-delete-flg input.checkbox').change(function(){
        var url = $(this).parents('table').attr('data-href');
        var value = $(this).is(':checked')==true?1:0;
        var name = $(this).attr('data-name');
        var order = {id: $(this).parents('tr').attr('data-id')};
        order[name] = value;
        changeState(url, {order: order});
    });
}